body {
    margin: 0px auto;
    text-align: center;
    background: url("../images/bg.jpg");
}

#time {
    text-align: center;
    font: 45px "bold";
    color: lightskyblue;
}

#game {
    width: 502px;
    height: 462px;
    margin: 0px auto;
    border: 1px solid #666;
    border-radius: 10px;
    background: url("../images/table.jpg");
    position: relative;
    display: -webkit-box;
    -webkit-box-pack: center;
    -webkit-box-align: center;
}

#cards {
    width: 380px;
    height: 400px;
    position: relative;
}

.card {
    width: 80px;
    height: 120px;
    position: absolute;
}

.face {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    position: absolute;
    -webkit-backface-visibility: hidden;
    -webkit-transition: all 0.3s;
}

.face:hover {
    box-shadow: 0 0 40px white;
}

.front {
    background: url("../images/deck.png") #999 0 -480px;
    z-index: 10;
}

.back {
    background: url("../images/deck.png") #efefef;
    -webkit-transform: rotateY(-180deg);
    z-index: 8;
}

.cardAJ {
    background-position: -800px 0;
}
.cardAQ {
    background-position: -880px 0;
}
.cardAK {
    background-position: -960px 0;
}
.cardBJ {
    background-position: -800px -120px;
}
.cardBQ {
    background-position: -880px -120px;
}
.cardBK {
    background-position: -960px -120px;
}


.card-flipped .front {
    z-index: 8;
    -webkit-transform: rotateY(180deg);
}
.card-flipped .back {
    z-index: 10;
    -webkit-transform: rotate(0deg);
}
.card-removed {
    opacity: 0;
}